package com.mzy.datepackage.M2021.Nov.TwentyEight;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2021/11/28 22:52
 * @Version 1.0
 */
public class Demo2 extends Demo{
    private String food;
    private String money;
    public Demo demo;


    public static String abc="Demo2 +abc ";

    static {
        System.out.println(abc);
    }

    @Override
    public String toString() {
        return "Demo2{" +
                "food='" + food + '\'' +
                ", money='" + money + '\'' +
                ", demo=" + demo +
                '}';
    }

    public String getFood() {
        return food;
    }

    public void setFood(String food) {
        this.food = food;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public Demo getDemo() {
        return demo;
    }

    public void setDemo(Demo demo) {
        this.demo = demo;
    }

    public static String getAbc() {
        return abc;
    }

    public static void setAbc(String abc) {
        Demo2.abc = abc;
    }

    public static void main(String[] args) {
        String a="测试1";
        System.out.println(a);

        Demo2 demo2 = new Demo2();
    }
}
